package org.sean.contactdemo.domain;

import java.io.Serializable;
import java.util.Date;

import org.eclipse.core.runtime.IAdaptable;

public class User implements IAdaptable, Serializable {

	private int userId;
	private String userAccount;
	private String userPassword;
	private String userName;
	private GenderType userGender;
	private Date userBirth;
	private String mail;
	private String zipcode;
	private String address;
	private String areacode;
	private String phone;
	private String mobile;
	private Date lastLogin;

	public User() {
	}

	public User(String userAccount, String userPassword) {
		this.userAccount = userAccount;
		this.userPassword = userPassword;
		this.userGender = GenderType.MALE;
	}

	@Override
	public Object getAdapter(Class adapter) {
		return null;
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public GenderType getUserGender() {
		return userGender;
	}

	public void setUserGender(GenderType userGender) {
		this.userGender = userGender;
	}

	public Date getUserBirth() {
		return userBirth;
	}

	public void setUserBirth(Date userBirth) {
		this.userBirth = userBirth;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getZipcode() {
		return zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAreacode() {
		return areacode;
	}

	public void setAreacode(String areacode) {
		this.areacode = areacode;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}
}
